﻿#parse("/user/admin/inc/top.htm")
<div class="clearfix"></div>
<div class="MainPannel">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
    <tr>
      <td height="38" align="center"><table width="98%" height="34" border="0" cellpadding="0" cellspacing="0">
          <tr>
              <td width="40" align="right"><img src="/images/list.gif" width="32" height="32" /></td>
              <td class="titletxt">博客模板列表</td>
          </tr>
        </table></td>
    </tr>
</table>
#if ($msg)
<script language="JavaScript">
alert('$!msg');
</script>
#end
#if($close)
<script language="JavaScript">
window.close();
</script>
#end
<script language="JavaScript">
var timer;
var win;
function formSubmit(){
	return;
}
function smdWin(){ 
	win=window.showModalDialog("/blogTemplate.do?parameter=edit",window,"dialogWidth=495px;dialogHeight=210px;status=0;scroll:no");
	if(win=="ok"){
		window.location.reload();
	}
}
function fontZoom(size){
document.getElementById('content').style.fontSize=size+'px'
}
function del(cid){
 if(confirm("你确定删除吗？")){
   window.location.href="/blogTemplate.do?parameter=del&cid="+cid;
 }
}
</script>
<table width="100%" height="100%"  border="0" cellpadding="0" cellspacing="0">
	<tr>
		<td align="center" valign="top">
<div style="margin:8px">
<table width="100%" border=0 align="center" cellpadding=0 cellspacing=0>
	<tbody>
		<tr>
			<td valign=top><table cellspacing=0 cellpadding=0 width=100% border=0>
					<tbody>
						<tr>
							<td valign=top>
								<table border="0" cellpadding="0" cellspacing="10" style="height:100%;overflow:auto;">
									<tr> #set($count=0)
										#foreach( $info in $list)
										#set($count=$count+1)
										<td width="180" height="150"><table helght="300" border="1" align="center" cellspacing="0" cellpadding="5" bordercolordark="#FFFFFF" bordercolorlight="#000000" style="word-break:break-all;">
												<tr align="center">
													<td height="140" class="font1"><a href="$!info.img_url" target="_blank">
													<img src="$!info.s_img_url" border="0" width="120" height="110"/></a></td>
												</tr>
												<tr>
													<td width="160" bgcolor="#cde7dc"><div align="center"> 模板名称：$!info.title<br/>
															<a href="/blogUser.do?parameter=ChangeTemplate&template=$!info.title">应用</a> 
															<!--  <a href="/blogTemplate.do?parameter=edit2&cid=$!info.cid">编辑</a> -->
															#if($!currentUser.userName=="admin")
															<a href="javascript:del('$!info.cid');">删除</a>
															#end
															<a href="$!info.img_url" target="_blank">预览</a>
															<!--修改 引用-->
														</div></td>
												</tr>
											</table></td>
										#set($temp=$count%5)
										#if($temp==0) </tr>
									#end
									#end
								</table></td>
						</tr>
					</tbody>
				</table></td>
		</tr>
	</tbody>
</table>
</div>

<table width="100%" border="0" align="center" cellspacing="0" cellpadding="5" bordercolordark="#FFFFFF" bordercolorlight="#000000">
	<tr>
<td align="center"><br/>第<strong>
	#if($!page>0)
	$!page
	#else
	 1
	#end
	</strong>页 共<strong>#if($!pages>0)
	$!pages
	#else
	 1
	#end</strong>页<span class="txt1">[共<b>$!rows</b>条记录]</span>
	　　
	#if($gotoPageHTML=="")
	#else
     分页：$!gotoPageHTML　
	#end 
	
	</td>
		
	</tr>
</table>
</td></tr>
</table>
	<div class="clearfix"></div>
</div>
<div class="clearfix"></div>
#parse("/user/admin/inc/bottom.htm")
</body>
</html>